<?php
$yhendus=new mysqli("localhost", "if13", "ifikad", "if13_karpovfr");
$kask=$yhendus->prepare("SELECT id, cat, color FROM cats");
echo $yhendus->error;
  $kask->bind_result($id, $cat, $color);
  $kask->execute();
?><html>
  <head>
     <title>Kassileht</title>
  </head>
  <body>
    <h1>Kassid</h1>
    <p>Lel</p>
     <?php
	 while($kask->fetch()){
	 echo "<h2 style='color: $color'>$cat</h2>";
	 }
	 $yhendus->close();
	 ?>
    Jaagup vaatas kasse
  </body>
</html>